home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000824-20010305
/
000022_news@columbia.edu _Tue Sep 12 18:08:11 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-03-05
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id SAA06920
for <kermit.misc@cpunix.cc.columbia.edu>; Tue, 12 Sep 2000 18:08:11 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA10739
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 12 Sep 2000 18:08:11 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id RAA03223
for kermit.misc@watsun.cc.columbia.edu; Tue, 12 Sep 2000 17:54:35 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@columbia.edu (Frank da Cruz)
Subject: Re: C-Kermit question
Date: 12 Sep 2000 21:54:34 GMT
Organization: Columbia University
Message-ID: <8pm8mq$34k$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <slrn8rt8fl.sulc.jgodden@rialto.newchemicalentities.com>,
jeff godden <jgodden@nce-mail.com> wrote:
: On 12 Sep 2000 17:34:39 GMT, Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
: >In article <8plnua$rsn$1@talia.mad.ttd.net>,
: >Enrique Bernal <ebv@iies.es> wrote:
: >: I have a Linux box (SuSE 6.4) with one NIC (IP: 192.168.0.1) and one
: >: serial port ( /dev/ttyS0 ).
: >:
: >: I want to send (by LAN) to other host (192.168.0.2) any character received
: >: in the serial port /dev/ttyS0.
: >:
: >: In the same way, I want to send out (by serial port /dev/ttyS0) any
: >: character received (by LAN) in 192.168.0.1
: >:
: >: Is possible to do this with Kermit ?
: >:
: >No, sorry. C-Kermit can have only one connection open at a time.
:
: Yet couldn't one have more than one kermit process with
: either a unix pipe or fifo buffer or somesuch doing a
: bucket chain?
:
There's no mechanism in Kermit for linking itself to another... Hmmm...
wait a minute; there's so much in there sometimes even I forget what it all
is. OK, how about this:
set host 192.168.0.2
transmit /pipe kerbangscriptname
where "kerbangscriptname" is the name of a (C-Kermit) "Kerbang" script that
(starts another copy of Kermit and) opens a serial-port connection on
/dev/ttyS0 and enters CONNECT mode. But if this worked, it would work only
in one direction.
Some other tricks could be imagined too, maybe with session logs (did you
know you can "log session |pipename"?), fopen(), etc. How about we make it a
contest?
But I seriously doubt there will be any truly practical solution. It would
be easier to write a tiny little C program that opens the two connections
and goes into a select() loop, or uses two forks for copying in the two
directions.
: On an rather separate issue, Frank, when is a new version
: of the Kermit book coming out? 'cuz i want to give you
: fine folks more money. [wink]
:
Well, there was going to be one for C-Kermit 7.0 but we wanted to do just a
few more things first, and this got a bit out of hand, so the current plan
is to have the next edition of the book (or books -- there is going to be an
awful lot of new material) come out with the next release of C-Kermit, which
I hope we can announce for alpha testing "shortly".
- Frank